package org.examplexx.mytestwebapplication.Mapper;

import org.apache.ibatis.annotations.*;
import org.examplexx.mytestwebapplication.pojo.Emp;

import java.util.List;

@Mapper
public interface UserMapper {
   @Select("select *from user")
    List<Emp> getUsers();
    @Select("select * from user where username= #{username} and password=#{password}")
    List<Emp> getUserByUsernameAndPassword(String username, String password);
}